/**
 * @date 2:41:09 PM
 * EducationHomeworkStudent.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Getter;
import lombok.Setter;
/**
 * @class EducationHomeworkStudent	
 * @author Warren
 * @description
 * @date Nov 15, 2018 
 */
@Entity
@Table(name="education_homework_student")
@Getter
@Setter
public class EducationHomeWorkStudent {
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id" ,unique=true,nullable=false)
	private Long id;
	private Double correctRate;
	private String startTime;
	private String endTime;
	
	@ManyToOne
	@JoinColumn(name="student_id")
	@JsonIgnoreProperties(value = { "school","groups","grade","clazz"})
	private EducationStudent student;
	
	@ManyToOne
	@JoinColumn(name="homework_id")
	@JsonIgnoreProperties(value = { "group","teacher","homeWorkQuestionList","subjectLessonList" })
	private EducationHomeWork homework;
}
